package com.nyl.learn.model;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

/**
 * Created by nyl
 * 2017/6/19
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
        "name","age"
})
@XmlRootElement(name = "holidayResponse")
public class HolidayResponse {
    
    @XmlElement(required = true)
    protected String name;
    @XmlElement(required = true)
    protected Integer age;
    
    
    
    public String getName () {
        return name;
    }
    
    public void setName (String name) {
        this.name = name;
    }
    
    public Integer getAge () {
        return age;
    }
    
    public void setAge (Integer age) {
        this.age = age;
    }
    
    
    @Override
    public String toString () {
        return "HolidayResponse{" +
                " name=" + name + ", age=" + age + '}';
    }
}
